device_backup
Configuration for Device Backup resource.
Read/write properties
wallet_key_encrypted<Boolean>
True if wallet key encrypted for service deployment.
last_updated_time<Double>
Last Updated Time.
id<String>
Id is system generated key for all backed up files.
backup_filesize<Double>
Backup file size.
ip_address<String>
Device IP Address.
Minimum length = 1
Maximum length = 64
encrypted<Boolean>
Indicates if the backup files are encrypted.
backup_password<String>
Backup Password.
use_global_password<Boolean>
Global Password.
Read only properties
backup_filename<String>
Name of the backed up file.
device_name<String>
Device Hostname.
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/device_backup?action=devicerestore&onerror=<String_value>
HTTPS Method:POST
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"device_backup": {
"backup_filesize":<Double_value>,
"id":<String_value>,
"backup_password":<String_value>,
"last_updated_time":<Double_value>,
"ip_address":<String_value>,
"use_global_password":<Boolean_value>,
"encrypted":<Boolean_value>,
"wallet_key_encrypted":<Boolean_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "device_backup":[{
"device_family":<String_value>,
"wallet_key_encrypted":<Boolean_value>,
"tenant_id":<String_value>,
"image_filesize":<Double_value>,
"external_storage_info":<backup_external_storage_value>,
"backup_filename":<String_value>,
"last_updated_time":<Double_value>,
"image_filename":<String_value>,
"device_name":<String_value>,
"id":<String_value>,
"backup_filesize":<Double_value>,
"ip_address":<String_value>,
"encrypted":<Boolean_value>,
"backup_password":<String_value>,
"use_global_password":<Boolean_value>,
"act_id":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/device_backup
Query-parameters:
filter
https://<MGMT-IP>/nitro/v2/config/device_backup?filter=property-name1:property-value1,property-name2:property-value2
Use this query-parameter to get the filtered set of device_backup resources configured on the system. You can set a filter on any property of the resource.
pagesize=#no&pageno=#no
https://<MGMT-IP>/nitro/v2/config/device_backup?pagesize=#no&pageno=#no
Use this query-parameter to get the device_backup resources in chunks.
count
https://<MGMT-IP>/nitro/v2/config/device_backup?count=yes
Use this query-parameter to get the count of device_backup resources.
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "device_backup":[{
"device_family":<String_value>,
"wallet_key_encrypted":<Boolean_value>,
"tenant_id":<String_value>,
"image_filesize":<Double_value>,
"external_storage_info":<backup_external_storage_value>,
"backup_filename":<String_value>,
"last_updated_time":<Double_value>,
"image_filename":<String_value>,
"device_name":<String_value>,
"id":<String_value>,
"backup_filesize":<Double_value>,
"ip_address":<String_value>,
"encrypted":<Boolean_value>,
"backup_password":<String_value>,
"use_global_password":<Boolean_value>,
"act_id":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/device_backup?action=devicebackup&onerror=<String_value>
HTTPS Method:POST
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:JSON
{"device_backup": {
"id":<String_value>,
"backup_filesize":<Double_value>,
"backup_password":<String_value>,
"ip_address":<String_value>,
"last_updated_time":<Double_value>,
"encrypted":<Boolean_value>,
"use_global_password":<Boolean_value>,
"wallet_key_encrypted":<Boolean_value>}}
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "device_backup":[{
"device_family":<String_value>,
"wallet_key_encrypted":<Boolean_value>,
"tenant_id":<String_value>,
"image_filesize":<Double_value>,
"external_storage_info":<backup_external_storage_value>,
"backup_filename":<String_value>,
"last_updated_time":<Double_value>,
"image_filename":<String_value>,
"device_name":<String_value>,
"id":<String_value>,
"backup_filesize":<Double_value>,
"ip_address":<String_value>,
"encrypted":<Boolean_value>,
"backup_password":<String_value>,
"use_global_password":<Boolean_value>,
"act_id":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/device_backup/id_value<String>
HTTPS Method:DELETE
Request Headers:
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value> }
URL:https://<MGMT-IP>/nitro/v2/upload/device_backup
HTTPS Method:POST
Request Headers:
Content-Type:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Request Payload:Multi-part form data with File Stream
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Payload:JSON
{ "errorcode": 0, "message": "Done }
URL:https://<MGMT-IP>/nitro/v2/download/device_backup/id_value<String>
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Headers:
Content-Type:application/json
Response Payload:Binary Stream